package com.rulin.asp.business.log.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.rulin.asp.business.log.service.QuestionLogService;

@Controller
@RequestMapping("/questionLog")
public class QuestionLogController {

	@Autowired
	private QuestionLogService questionLogService;
	
	@RequestMapping(value = "/quesLogPage.html", method = RequestMethod.GET)
	public String quesListPage(Model model,String quesId){
//		setDiv(model);
		model.addAttribute("logs", questionLogService.getQuestionLogsByQuesId(quesId));
		return "business/log/queslog_page";
	}
}
